package com.franklin.ideaplugin.easytesting.rpc.entity;

import com.franklin.ideaplugin.api.utils.PsiUtil;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Ye Junhui
 * @since 2023/5/15
 */
@Data
public class MethodParameter implements Serializable {

    private String classQualifiedName;

    private String value;

    private boolean isBasicType;

    private boolean isArray;

    public MethodParameter(String classQualifiedName, String value) {
        this.classQualifiedName = classQualifiedName;
        this.value = value;
        this.isBasicType = PsiUtil.isBasicDataTypes(classQualifiedName);
    }
}
